Matthias Clasen [Mon, 21 Dec 2015 19:53:09 +0000 (14:53 -0500)]
css parser test: Drop remaining made-up properties
These are not used anymore in any tests, and the css parser
doesn't support parsing custom properties anymore.
Matthias Clasen [Mon, 21 Dec 2015 19:52:06 +0000 (14:52 -0500)]
Fix css parser integer test
Use margin-top instead of a made-up property.
Matthias Clasen [Mon, 21 Dec 2015 19:44:00 +0000 (14:44 -0500)]
Update css parser value none test
The test is affected by icon-shadow being renamed and by
engine being deprecated.
Matthias Clasen [Mon, 21 Dec 2015 19:37:09 +0000 (14:37 -0500)]
Fix the css parser value initial test
This was affected by the recent renaming of icon-shadow to
-gtk-icon-shadow. Also, it produces an error now because
engine is deprecated.
Matthias Clasen [Mon, 21 Dec 2015 19:35:11 +0000 (14:35 -0500)]
Fix the css parser value inherit test
This was affected by the recent renaming of icon-shadow to
-gtk-icon-shadow. Also, it produces an error now because
engine is deprecated.
Matthias Clasen [Mon, 21 Dec 2015 19:32:01 +0000 (14:32 -0500)]
Update font-weight css parser test
This is affected by the recent fix for parsing font-weight.
Matthias Clasen [Mon, 21 Dec 2015 19:30:32 +0000 (14:30 -0500)]
Update font-family css parser test
There are no errors here.
Matthias Clasen [Mon, 21 Dec 2015 19:29:17 +0000 (14:29 -0500)]
Update the css parser unknown pseudo-class test
Use an existing property instead of a made-up one.
Matthias Clasen [Mon, 21 Dec 2015 19:27:52 +0000 (14:27 -0500)]
Update the css parser selector test
Use an existing property instead of the made-up one, here.
Matthias Clasen [Mon, 21 Dec 2015 19:25:46 +0000 (14:25 -0500)]
Drop the css parser enum test
We are no longer using and non-css properties, and css enums
are all parsed with custom code.
Matthias Clasen [Mon, 21 Dec 2015 19:17:28 +0000 (14:17 -0500)]
Update another css parser test
This test was using the engine property, which has
been deprecated and thus generates an error now.
Instead, use the font property.
Matthias Clasen [Mon, 21 Dec 2015 19:14:36 +0000 (14:14 -0500)]
Update css parser test for declarations
Use existing CSS properties instead of made-up ones.
Matthias Clasen [Mon, 21 Dec 2015 19:11:10 +0000 (14:11 -0500)]
test-css-parser: Drop unused property
The rgba-property is no longer used in any tests, drop it.
Matthias Clasen [Mon, 21 Dec 2015 19:08:58 +0000 (14:08 -0500)]
Update css parser tests for colors
Use the color property instead of a made-up rgba-valued property.
Matthias Clasen [Mon, 21 Dec 2015 19:07:08 +0000 (14:07 -0500)]
test-css-parser: Drop unused property
The border-property is no longer used in any tests, drop it.
Matthias Clasen [Mon, 21 Dec 2015 19:06:07 +0000 (14:06 -0500)]
Update css parser test for borders
Use the border-image-width property instead of a made-up
border-valued property.
Matthias Clasen [Mon, 21 Dec 2015 19:01:03 +0000 (14:01 -0500)]
Update border-radius-shorthand tests
The name of the css file is in the error output, so we
have to update that after the file was recently renamed.
Matthias Clasen [Mon, 21 Dec 2015 18:59:24 +0000 (13:59 -0500)]
Update pseudo-class test
We have some more pseudo-classes now, and some are printed
out with their CSS name.
Matthias Clasen [Mon, 21 Dec 2015 18:53:56 +0000 (13:53 -0500)]
test-css-parser: Drop unused properties
We don't have any tests involving these style
properties, so don't install those.
Matthias Clasen [Mon, 21 Dec 2015 18:51:23 +0000 (13:51 -0500)]
Don't test parsing boolean values in css
CSS doesn't have any boolean properties.
Carlos Garnacho [Mon, 21 Dec 2015 18:13:41 +0000 (19:13 +0100)]
wayland: Don't trigger grab on missing capabilities
Those might not be currently there in the first place.
Matthias Clasen [Mon, 21 Dec 2015 17:53:05 +0000 (12:53 -0500)]
image: Don't assume baseline parameters are non-NULL
The GetSize callback *can* assume that minimum and natural are
non-NULL. Buy minimum_baseline and natural_baseline can and
will be NULL, so handle that. This was causing crashes e.g. in
pavucontrol.
Cosimo Cecchi [Mon, 21 Dec 2015 01:30:52 +0000 (17:30 -0800)]
menu: port arrow rendering to use a GtkBuiltinIcon
At the same time, remove one spurious background/frame rendering, and
simplify the code a great deal.
Cosimo Cecchi [Mon, 21 Dec 2015 02:48:08 +0000 (18:48 -0800)]
menuitem: trivial doc improvement
Cosimo Cecchi [Mon, 21 Dec 2015 02:29:48 +0000 (18:29 -0800)]
cssgadget: print more information when warning
Cosimo Cecchi [Mon, 21 Dec 2015 02:23:46 +0000 (18:23 -0800)]
cssgadget: fix fallback case
We should be resetting the height here, not the width.
Cosimo Cecchi [Mon, 21 Dec 2015 02:44:10 +0000 (18:44 -0800)]
menu: deprecate double-arrows style property
It does not sound like a good idea anymore to have a style property
change the layout of the menu this drastically.
Cosimo Cecchi [Sun, 20 Dec 2015 19:19:23 +0000 (11:19 -0800)]
menu: deprecate arrow-placement style property
It does not sound like a good idea anymore to have a style property
change the layout of the menu this drastically.
Lapo Calamandrei [Mon, 21 Dec 2015 15:58:03 +0000 (16:58 +0100)]
Adwaita: set scrollbar style props in a general wildcard
trying to make webkit happy.
Lapo Calamandrei [Mon, 21 Dec 2015 15:18:04 +0000 (16:18 +0100)]
Adwaita: fix split headerbar styling
applications with split headerbars has a container in the titlebar
slot so the .titlebar style there needs to be reset. Since we can't
go backward with selectors I assumed that any csd application
sports a headerbar hence relying on that styling and resetting
the .titlebar styleclass.
Matthias Clasen [Mon, 21 Dec 2015 13:26:58 +0000 (08:26 -0500)]
css: Support CSS names for pseudo states
What we call :insensitive is called :disabled in CSS, and
:inconsistent is :indeterminate. Recognize these names, but
still support the old ones.
Matthias Clasen [Mon, 21 Dec 2015 12:46:37 +0000 (07:46 -0500)]
Adwaita: Attempt a fixing split headers
Remove decorations from headerbars which are wrapped in some
other containers (like boxes, or paneds), to prevent double
decorations in those cases.
Matthias Clasen [Mon, 21 Dec 2015 11:58:29 +0000 (06:58 -0500)]
Add missing tests to Makefile.am
Matthias Clasen [Mon, 21 Dec 2015 11:45:32 +0000 (06:45 -0500)]
Fix the build
Matthias Clasen [Sun, 20 Dec 2015 22:33:24 +0000 (17:33 -0500)]
Add some css parser tests
These tests exercise many allowed ways to specify various
properties.
Lapo Calamandrei [Mon, 21 Dec 2015 10:50:56 +0000 (11:50 +0100)]
Adwaita: make progressbars and scales the same size
Lapo Calamandrei [Mon, 21 Dec 2015 10:28:45 +0000 (11:28 +0100)]
Adwaita: progressbar sizing and progress component positioning
shrinked progressbars a bit and moved the progress component start
and end over the trough border.
Matthias Clasen [Mon, 21 Dec 2015 04:50:40 +0000 (23:50 -0500)]
Fix a typo
Matthias Clasen [Sun, 20 Dec 2015 22:51:47 +0000 (17:51 -0500)]
Fix parsing of font-weight
The parser was turning a 400 into a 200 and a 700 into a 500.
Matthias Clasen [Sun, 20 Dec 2015 22:03:06 +0000 (17:03 -0500)]
buttonbox: Fix size request
A copy-paste mistake was making us always request too little
space, causing the buttons to be jumbled or cut off.
https://bugzilla.gnome.org/show_bug.cgi?id=759664
Matthias Clasen [Sun, 20 Dec 2015 19:40:49 +0000 (14:40 -0500)]
inspector: Avoid criticals in the css editro
We can't keep text iters around after text buffer has been
changed. Just clear the list errors when the buffer changes
before we've passed it again.
Michael Catanzaro [Sun, 20 Dec 2015 17:52:30 +0000 (11:52 -0600)]
entry: Fix typo
Aurimas Černius [Sun, 20 Dec 2015 13:41:08 +0000 (15:41 +0200)]
Updated Lithuanian translation
Matthias Clasen [Sun, 20 Dec 2015 06:04:59 +0000 (01:04 -0500)]
modelbutton: Stop saving cairo state
GtkBuiltinIcon does this now on its own.
Matthias Clasen [Sun, 20 Dec 2015 06:04:13 +0000 (01:04 -0500)]
checkbutton: stop saving cairo state
GtkBuiltinIcon now does this on its own.
Matthias Clasen [Sun, 20 Dec 2015 05:54:47 +0000 (00:54 -0500)]
Some updates to the CSS docs
Remove references to regions and engines, emphasize
element names over type names, update the list of
pseudo-states.
Cosimo Cecchi [Sat, 19 Dec 2015 21:01:53 +0000 (13:01 -0800)]
checkmenuitem: port indicator gadget to GtkBuiltinIcon
Saves a lot of code.
Cosimo Cecchi [Sat, 19 Dec 2015 20:29:39 +0000 (12:29 -0800)]
menuitem: port arrow gadget to GtkBuiltinIcon
Saves a lot of code.
Cosimo Cecchi [Sat, 19 Dec 2015 20:10:45 +0000 (12:10 -0800)]
menuitem: simplify code
Only cast once.
Cosimo Cecchi [Sat, 19 Dec 2015 20:07:39 +0000 (12:07 -0800)]
builtinicon: save/restore cairo context when rendering
Cosimo Cecchi [Sat, 19 Dec 2015 01:59:34 +0000 (17:59 -0800)]
checkmenuitem: deprecate indicator-size style property
We can now use min-width/min-height.
Cosimo Cecchi [Sat, 19 Dec 2015 01:52:16 +0000 (17:52 -0800)]
menuitem: deprecate toggle-spacing style property
We can move this to just use the actual GtkCssGadget of the menu item.
Cosimo Cecchi [Fri, 18 Dec 2015 22:45:15 +0000 (14:45 -0800)]
checkmenuitem: use a gadget for the check indicator
This will make margins and other CSS properties work correctly on the
indicator.
Cosimo Cecchi [Fri, 18 Dec 2015 22:20:39 +0000 (14:20 -0800)]
theme: fix menu check/radio styling
This is a leftover from the CssNode port of GtkCheckMenuItem and
GtkRadioMenuItem.
Cosimo Cecchi [Fri, 18 Dec 2015 18:10:28 +0000 (10:10 -0800)]
menuitem: trivial cleanup
Cosimo Cecchi [Fri, 18 Dec 2015 17:59:23 +0000 (09:59 -0800)]
checkmenuitem: prefer early return
Cosimo Cecchi [Fri, 18 Dec 2015 05:54:46 +0000 (21:54 -0800)]
menuitem: deprecate arrow-scaling style property
With this, we can also remove the custom measure function of the arrow
gadget.
Cosimo Cecchi [Fri, 18 Dec 2015 05:41:40 +0000 (21:41 -0800)]
menuitem: convert arrow rendering to GtkCssGadget
This also deprecates the arrow-spacing style property, which can be now
replaced with a simple margin.
Cosimo Cecchi [Fri, 18 Dec 2015 03:24:24 +0000 (19:24 -0800)]
menuitem: deprecate width-chars style property
Instead, we can just set min-width.
Cosimo Cecchi [Fri, 18 Dec 2015 03:12:06 +0000 (19:12 -0800)]
menuitem: port to gadgets
This is not a complete conversion yet - more changes will come in later
commits.
Cosimo Cecchi [Fri, 18 Dec 2015 02:50:12 +0000 (18:50 -0800)]
menuitem: use gtk_container_class_handle_border_width()
Cosimo Cecchi [Fri, 18 Dec 2015 01:46:31 +0000 (17:46 -0800)]
menuitem: really ignore horizontal-padding
This style property has been documented as been ignored for a long time,
but we were still reading it in some cases.
Matthias Clasen [Sun, 20 Dec 2015 04:53:31 +0000 (23:53 -0500)]
statusbar: Deprecate style properties
We were not really using the shadow-type style property anyway,
so lets just deprecate it. Themes can directly theme the frame.
Matthias Clasen [Sun, 20 Dec 2015 04:24:27 +0000 (23:24 -0500)]
Adwaita: Drop some deprecated style properties
These can now be replaces with min-width/min-height.
Matthias Clasen [Sun, 20 Dec 2015 04:23:09 +0000 (23:23 -0500)]
checkbutton: Fix regression from builtin icon
The leaking of cairo transforms from builtin icon drawing
was causing the label to be drawn at the wrong position.
Matthias Clasen [Sun, 20 Dec 2015 02:56:05 +0000 (21:56 -0500)]
modelbutton: Fix state confusion
Checked buttons were getting the wrong image.
Matthias Clasen [Sun, 20 Dec 2015 01:46:26 +0000 (20:46 -0500)]
Adwaita: Try harder to fix arrow rendering
Fiddle with specificity to keep hovered modelbutton arrows
from rendering background.
Matthias Clasen [Sun, 20 Dec 2015 01:16:51 +0000 (20:16 -0500)]
modelbutton: Hide checks initially
Manually constructed model buttons were always ending up
with a check. Fix that by hiding the indictator node initially.
Matthias Clasen [Sat, 19 Dec 2015 22:34:21 +0000 (17:34 -0500)]
Adwaita: Fix treeview headers
The borders went missing on these, at some point.
https://bugzilla.gnome.org/show_bug.cgi?id=759567
Matthias Clasen [Sat, 19 Dec 2015 19:53:57 +0000 (14:53 -0500)]
modelbutton: Use a builtin icon for the arrow
No need to do this manually.
Matthias Clasen [Sat, 19 Dec 2015 16:22:18 +0000 (11:22 -0500)]
expander: Fix drawing in rtl
GtkBuiltinIcon leaves the cairo context in unclean state
when drawing, work around that.
Matthias Clasen [Sat, 19 Dec 2015 16:11:34 +0000 (11:11 -0500)]
Fix a case a height/width confusion
Matthias Clasen [Sat, 19 Dec 2015 05:48:10 +0000 (00:48 -0500)]
expander: Use a builtin icon
This saves quite a bit of code.
Dušan Kazik [Sat, 19 Dec 2015 13:46:14 +0000 (13:46 +0000)]
Updated Slovak translation
Pedro Albuquerque [Sat, 19 Dec 2015 07:37:02 +0000 (07:37 +0000)]
Updated Portuguese translation
Pedro Albuquerque [Sat, 19 Dec 2015 07:33:52 +0000 (07:33 +0000)]
Updated Portuguese translation
Matthias Clasen [Sat, 19 Dec 2015 05:33:20 +0000 (00:33 -0500)]
label: Allocate gadget before using it
Move the gtk_css_gadget_allocate call before the
gtk_label_update_layout_width call. This fixes the
statusbar label in widget-factory page 2 coming
up fully ellipsized.
Benjamin Otte [Sat, 19 Dec 2015 04:47:48 +0000 (05:47 +0100)]
notebook: Sync menu labels with page list in visibile_cb
It's where it changes. Size requests have nothing to do with that.
Benjamin Otte [Fri, 18 Dec 2015 00:01:33 +0000 (01:01 +0100)]
notebook: Don't allocate during size requests
wat?
Benjamin Otte [Sat, 19 Dec 2015 05:10:37 +0000 (06:10 +0100)]
label: Don't use _gtk_mis_get_padding_and_border()
The function takes into account CSS padding and border, which these days
is handled by the gadget code. Use gtk_misc_get_padding() instead.
Christoph Reiter [Thu, 17 Dec 2015 18:52:23 +0000 (19:52 +0100)]
imagedefinition: The storage type is not a boolean
Matthias Clasen [Sat, 19 Dec 2015 03:57:16 +0000 (22:57 -0500)]
Simplify actionbar
We don't need a frame widget here, just render a top border on the
box.
Matthias Clasen [Sat, 19 Dec 2015 03:37:57 +0000 (22:37 -0500)]
Adwaita: fix action bar styling
Make action bar buttons have some padding again.
Matthias Clasen [Sat, 19 Dec 2015 01:53:02 +0000 (20:53 -0500)]
icon helper: suppress style_changed when transient
Transient nodes should not propagate style-changed signals
that can cause widgets to get reallocated. This was causing
treeviews and iconviews with pixbuf cells to be constantly
resized and redrawn.
Matthias Clasen [Sat, 19 Dec 2015 00:32:24 +0000 (19:32 -0500)]
Add more icon entry tests
This test shows that changing icon types works.
Matthias Clasen [Fri, 18 Dec 2015 23:10:08 +0000 (18:10 -0500)]
entry: Don't clear when setting icons
Clearing the icon doesn't appear to be necessary with
todays code, and it has the unfortunate side-effect of
temoorarily hiding the icon's window, which breaks grabs
and makes us miss the button release event when the icon
is changed from a button press handler.
Matthias Clasen [Fri, 18 Dec 2015 21:55:21 +0000 (16:55 -0500)]
css node: Use g_set_object
Replace unref + assignment + ref combinations by g_set_object_calls.
Matthias Clasen [Fri, 18 Dec 2015 15:54:49 +0000 (10:54 -0500)]
entry: Remove some dead code
These defines are no longer used.
Timm Bäder [Thu, 17 Dec 2015 11:34:30 +0000 (12:34 +0100)]
Add a way to highlight resizing widgets
https://bugzilla.gnome.org/show_bug.cgi?id=759586
Timm Bäder [Fri, 18 Dec 2015 14:54:46 +0000 (15:54 +0100)]
GtkWidget: Don't mix code and declarations
Matthias Clasen [Fri, 18 Dec 2015 14:26:16 +0000 (09:26 -0500)]
expander: Deprecate style properties
This can all be done with CSS properties now.
Matthias Clasen [Fri, 18 Dec 2015 13:29:49 +0000 (08:29 -0500)]
expander: Let gadget render focus
This lets us drop lots of allocation fiddling, and reduces
the code that is consulting the style properties we want
to get rid of.
Matthias Clasen [Fri, 18 Dec 2015 12:37:52 +0000 (07:37 -0500)]
box: Add a way to get the gadget
This will be used in GtkButtonBox.
Matthias Clasen [Fri, 18 Dec 2015 11:48:04 +0000 (06:48 -0500)]
buttonbox: Convert to gadgets
Set a css name and use a gadget for button box allocation and
drawing.
Matthias Clasen [Thu, 17 Dec 2015 20:16:25 +0000 (15:16 -0500)]
Fix a problem with entry gadgets
place_windows is accessing the gadgets allocation, so make sure
to allocate the gadget before calling it.
Daniel Mustieles [Thu, 17 Dec 2015 18:14:57 +0000 (19:14 +0100)]
Updated Spanish translation
William Hua [Thu, 17 Dec 2015 17:38:35 +0000 (12:38 -0500)]
gdkborder: change types from gint16 to gint
William Hua [Thu, 17 Dec 2015 17:18:03 +0000 (12:18 -0500)]
gtkborder: restore original struct definition
We're going to add back the original struct definition removed by
a6e4de28, because using the typedef breaks all sorts of things like
gtkmm and WebKit, and having separate struct definitions allows us to
change the types in GdkBorder from gint16s to gints without breaking
ABI.
Paolo Borelli [Tue, 15 Dec 2015 20:25:25 +0000 (21:25 +0100)]
Win32: call dnd exit when finalizing the display
Since we init dnd when opening the display, call the corresponding
exit function (which is unused at the moment) when finalizing the
display.
Paolo Borelli [Mon, 14 Dec 2015 18:40:25 +0000 (19:40 +0100)]
Win32: move CoInitialize to dnd init
Functions requiring CoInitialize are called just in two places:
- the filechooser thread which calls its own CoInitializeEx
- the dnd code
Moving CoInitialize in the dnd specific init is cleaner and
we can pair it with the corresponding CoUninitialize since
CoUninitialize should be called as many times as CoInitialize.
Note that it is ok to call this function multiple times, so it
will not break if another codepath will need it in the future.
The patch also replaces the deprecated CoInitialize with the
equivalent call to CoInitializeEx (already used in the filechooser).